home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
VI5.ARJ
/
VIDEMO.EXE
/
SAMPLE2.PRG
< prev
next >
Wrap
Text File
|
1992-01-21
|
1KB
|
29 lines
************************************************************************
* SAMPLE2.PRG Peter M. Freese
* 1/20/92 Pinnacle Publishing, Inc.
*
* Source code demonstration of Group Box and Check Box classes
************************************************************************
#include "vi.ch"
#include "inkey.ch"
FUNCTION Sample2()
LOCAL oWin,oGB
// create a window
oWin := VWindowNew(12,20,27,60,0,WS_DOUBLEBORDER+WS_TITLE,;
HIWHITE,GREEN,"Group Box and Check Box Classes")
// create a group box control
oGB := VGroupBoxNew(oWin,2,10,11,30,GB_BORDER+GB_TITLETHRU+GB_TITLEMID,;
"File Attributes")
// create check box control
VCheckBoxNew(oWin,oGB,K_ALT_A,1,2,0,BLACK,.T.,"&Archive")
VCheckBoxNew(oWin,oGB,K_ALT_H,3,2,0,BLACK,.T.,"&Hidden")
VCheckBoxNew(oWin,oGB,K_ALT_R,5,2,0,BLACK,.F.,"&Read only")
VCheckBoxNew(oWin,oGB,K_ALT_S,7,2,0,BLACK,.F.,"&System")
// return window object to calling routine
RETURN oWin